package com.song.cloud.configNacos.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author ZhangGuisong
 * @Date 2021/2/27-18:52
 */
@RestController
public class configNacosController {
    @Value("${server.port}")
    private String serverPort;
    @Value("${config.info}")
    private String configInfo;
    @GetMapping("/config/getInfo")
    public String getInfo(){
        return "获取信息"+configInfo;
    }
}
